//
//  USTodayTarotCell.m
//  us
//
//  Created by karry on 2025/6/23.
//

#import "USTodayTarotCell.h"

@implementation USTodayTarotCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.leftTipView.layer.cornerRadius = 2;
    self.leftTipView.layer.masksToBounds = YES;
    self.imgView.layer.cornerRadius = 4;
    self.imgView.layer.masksToBounds = YES;
    self.imgView.contentMode = UIViewContentModeScaleAspectFit;
    self.imBgView.layer.masksToBounds = YES;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)setTarotDetailModel:(USTarotDetailModel *)tarotDetailModel {
    _tarotDetailModel = tarotDetailModel;
    
     
    if ([tarotDetailModel.userId isEqualToString: USUser.user.userId]) {
        self.leftTipView.backgroundColor = [UIColor jk_colorWithHex:0xFF967C];
        self.nameLab.text = @"我的";
    }else{
        self.leftTipView.backgroundColor = UIColor.us_blueColor;
        self.nameLab.text = [NSString stringWithFormat:@"%@的",USUser.user.relUser.nickname];
     }
 
    self.tarotLab.text = tarotDetailModel.tarotTitle;
    self.imgView.image = [UIImage imageNamed:tarotDetailModel.tarotTitle];
    
}
@end
